#ifndef LINK32_PLIC_H
#define LINK32_PLIC_H

LINK32FA016BX_BEGIN_DECLS


void plic_global_interrupt_enable(void);
void plic_global_interrupt_disble(void);

void plic_set_prio_threshold(uint8_t th);

void plic_irq_enable(uint32_t source, uint8_t priority);
void plic_irq_disable(uint32_t source);

void plic_set_handler(uint32_t source, PLIC_Handler_Type handler);

LINK32FA016BX_END_DECLS

#endif
